<template>
  <el-container id="app">
    <el-header>
      <el-menu
        :default-active="activeIndex2"
        class="el-menu-demo"
        mode="horizontal"
        @select="handleSelect"
        background-color="#409EFF"
        text-color="#fff"
        active-text-color="#fff">
      <el-menu-item index="1">
        <img src="./assets/img/logo.png" width="36px" />
      </el-menu-item>
      <el-submenu index="2">
        <template slot="title">项目</template>
        <el-menu-item index="2-1">选项1</el-menu-item>
        <el-menu-item index="2-2">选项2</el-menu-item>
        <el-menu-item index="2-3">选项3</el-menu-item>
      </el-submenu>

        <el-menu-item index="3"><a href="https://www.ele.me" target="_blank">关于</a></el-menu-item>
      </el-menu>
    </el-header>
    <el-main>
      <router-view/>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      activeIndex2: 'index-1'
    }
  },
  methods: {
    handleSelect: function () {
    }
  }
}
</script>

<style>
body {
  margin: 0px;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*text-align: center;*/
  color: #2c3e50;
  margin: 0px;
  /*margin-top: 60px;*/
}
.left {
  float: left;
}

.right {
  float: right;
}
</style>
